import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false

import VueRouter from 'vue-router'
Vue.use(VueRouter)

import home from './components/MyHome'
import login from './components/MyLogin'

const routes = [
  { path: '/home', component: home },
  { path: '/login', component: login },
]

const router = new VueRouter({
  routes
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
